﻿using System;
using System.Windows;

using Microsoft.Shell;

namespace Hetymine.Executioner {
    public static class Entry {
        private const string Unique = "Hetymine.Executioner--AF34D9";

        [STAThread]
        public static void Main() {
            if (SingleInstance<App>.InitializeAsFirstInstance(Unique)) {
                var application = new App();
                application.InitializeComponent();                
                application.Run();

                // Allow single instance code to perform cleanup operations
                SingleInstance<App>.Cleanup();
            }
        }
    }
}
